<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_goods_attr}".
*
* @property int $goods_attr_id 商品属性id自增 
* @property int $goods_id 商品id 
* @property int $attr_id 属性id 
* @property string $attr_value 属性值
* @property string $attr_price 属性价格
*/
class GoodsAttr extends BaseModel{

    protected $pk = 'goods_attr_id';
    protected $name = 'goods_attr';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    //protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'goods_attr_id' => '商品属性id自增',
            'goods_id' => '商品id',
            'attr_id' => '属性id',
            'attr_value' => '属性值',
            'attr_price' => '属性价格',
        ];
    }

}


?>